import request from '@/utils/request'

/**
 *查询全部仓库
 * @returns Promise()
 */
export const warehouseAPI = (params) => request({
  url: '/warehouse/page',
  method: 'GET',
  params
})

/**
 * 给分页器使用
 * @param {number} params current 当前页数
 * @returns Promise
 */
export const changePageAPI = (params) => request({
  url: '/warehouse/page',
  method: 'GET',
  params
})
